<h2>
	<div id="inputSectionShowHideSectionBox" class="hideSection" onClick="showHideSection('inputSection')">&nbsp;</div>
	Input Parameters
</h2>

<div id="ygddfdiv" style="visibility:hidden;position:absolute;"></div>

<div id="inputSection">

	<div id="treeInput"></div>
	<button onClick="addInputNode()">Add Input Parameter</button>

</div>

<h2>
<div id="outputSectionShowHideSectionBox" class="hideSection" onClick="showHideSection('outputSection')">&nbsp;</div>
Outputs
</h2>


<div id="outputSection">

	<div id="treeOutput"></div>

	<button onClick="addOutputNode()">Add Output Parameter</button>
	<button onClick="addOutputGroup()">Add Output Group</button>

</div>



<h2>
<div id="errorSectionShowHideSectionBox" class="hideSection" onClick="showHideSection('errorSection')">&nbsp;</div>
Error Codes
</h2>

<div id="errorSection">
	<div id="errorsListTable"></div>
	<button id="displayErrorCreationPanel">Add a new Error</button>


<div id="newErrorSearchPanel">
	<div class="hd">Search existing messages</div>
	<div class="bd">
		<form method="POST" id="newErrorPanelForm" action="<?php echo $this->baseUrl() ?>/apidesigner/index/searcherror/">
			<label for="searchString">Search String: </label><input type="textbox" id="searchString" name="searchString" /><br/><br />
			<button onclick="YAHOO.draftrack.errorContainer.odECP()">Create new error message</button>
			<div id="searchStringAutoCompResponse"></div>
		</form>
	</div>
</div>

<div id="newErrorPanel">
	<div class="hd">Error message creation</div>
	<div class="bd">
		<form method="POST" id="newErrorPanelForm" action="<?php echo $this->baseUrl() ?>/apidesigner/index/createerror/">
			<label for="errorString">Error Text: </label><input type="textbox" id="errorString" name="errorString" />
			<button onclick="YAHOO.draftrack.errorContainer.osubmit()">Create error</button>
		</form>
		
	</div>
</div>
	
</div>


<h2>
<div id="examplesSectionShowHideSectionBox" class="hideSection" onClick="showHideSectionSection('examplesSection')">&nbsp;</div>
Examples
</h2>

<div id="examplesSection">

	<button onClick="createNewExample()">Create new example</button>
	<div id="examplesList"></div>

</div>


<h2>
<div id="saveMessageSectionShowHideSectionBox" class="hideSection" onClick="showHideSectionSection('saveMessageSection')">&nbsp;</div>
Save Message 
</h2>


<div id="saveMessageSection">

<form action="<?php echo $this->baseUrl() ?>/apidesigner/index/savemessage/" method="POST">
<h3>Change Description</h3>

<textarea cols="80" id="messageChangeDescription" name="messageChangeDescription">
<?php if(!empty($this->id)) echo 'Original version id: '.$this->id."\n"; ?>
</textarea>
<input type="hidden" name="messageDefinition" id="messageDefinition" />
<input type="hidden" name="actionName" id="actionName" value="<?php echo $this->actionName; ?>" />
<input type="hidden" name="controllerName" id="controllerName" value="<?php echo $this->controllerName; ?>" />
<input type="hidden" name="moduleName" id="moduleName" value="<?php echo $this->moduleName; ?>" />
<br /><br />

	<button onClick="document.getElementById('messageDefinition').value = getMessageDefinition();">Save Message</button>


</form>
</div>

<div id="messageJSONDef" class="data"><?php echo $this->messageDefinition ?></div>
<div id="APIBaseURL" class="data"><?php echo $this->baseURL().'/'.$this->moduleName.'/'.$this->controllerName.'/'.$this->actionName.'/' ?></div>
<div id="JSONConversionURL" class="data"><?php echo $this->baseURL().'/apidesigner/index/formatexample/' ?></div>